package cn.itcast.usermanage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.itcast.usermanage.pojo.EasyUIResult;
import cn.itcast.usermanage.pojo.User;

public interface UserMapper {
	//定义一个根据id查询用户的方法
	public User queryUserById(@Param("id")long id);

	public List<User> queryUserByPage(@Param("start")int start,@Param("size")int size);

	public List<User> queryUserAll();
	
	//添加用户
	public int addUser(User user);

	public int deleteUserById(@Param("id")long id);

	public int editUser(User user);

}
